using System.Text;
using Natrue.Data.FastMapping;

namespace Natrue.Web
{
    public class CodeBuilder
    {
        private readonly StringBuilder sb;

        protected StringBuilder Sb
        {
            get { return sb; }
        }

        public CodeBuilder()
        {
            sb = new StringBuilder();
        }

        public CodeBuilder Append(string value)
        {
            sb.Append(value);
            sb.Append(SmartViewKeywords.Br);
            return this;
        }

        public override string ToString()
        {
            return sb.ToString();
        }
    }
}